<div class="layui-header">
    <div class="layui-row">
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <div class="layui-col-md5">
            <p id="u40"><span>名师工作室管理平台</span></p>
        </div>
    </div>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
            <a href="javascript:;">
                <i class="layui-icon layui-icon-user" style="font-size: 18px; color: #FFF;"></i> 欢迎您！{{$user->name}}
            </a>
        </li>

        @if(!empty($user->avatar))

            <li class="layui-nav-item"> <a href="javascript:;" onclick="return false"><img src="{{env('APP_URL').$user->avatar}}" class="layui-nav-img"></a> </li>
        @else
            <li class="layui-nav-item"><a href="javascript:;" onclick="return false"><i class="layui-icon layui-icon-user" style="font-size: 20px; color: #fff;"></i> </a></li>
        @endif

        <li class="layui-nav-item"><a href="{{env('APP_URL')}}/specialist/logout">退出</a></li>
    </ul>
</div>
